package com.itheima.d7_method_reference;

public class Test2 {
    public static void main(String[] args) {
        Create cc = Car::new;
        Car c = cc.Create("奔驰",33.1);
        System.out.println("名字:"+c.getName()+",价格："+c.getPrice());

    }
}

interface Create{
    Car Create(String name,double price);
}
